package ${packageName}.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
<#list entityMappers as item>
import ${packageName}.entity.${item.mapperName};
</#list>
import ${packageName}.dto.${entityDTO};
import ${packageName}.dto.${entityMultiDTO};
import java.util.List;

/**
* @author Faye.Wang
* @version 1.0
* @date 2021/1/6 14:49
* @Description
*/
public interface I${entityName}Service {
	/**
	* 保存数据
	* @param ${methodArgs});
	*/
	void insertEntity(${methodArgs});

	/**
	* 根据主键删除数据
	* @param id
	* @return
	*/
	void deletePrimaryKey(Integer id);

	/**
	* 修改记录
	* @param ${methodArgs});
	*/
	void updateEntity(${methodArgs});

	/**
	* 获取单条数据
	* @param id
	* @return
	*/
	${entityDTO} selectByPrimaryKey(Integer id);

	/**
	* 单表查询所有
	* @param page
	* @param entity
	* @return
	*/
	IPage<${entityMultiDTO}> selectEntityList(Page<${entityMultiDTO}> page,${entityMultiDTO} entity);



}
